<?php

namespace app\api\model;

use think\Model;
use traits\model\SoftDelete;

class appmanager extends Model
{
    //
    use SoftDelete;
   protected $table = 'tpshop_app';
   protected $delete_time = 'delete_time';


   public function appdevices()
   {
       # code...
       return $this->hasMany('appdevice','app_bundle_id','app_bundle_id')->order('nowtime desc');
   }
}
 